public class Demo7 {
        public static void main(String[] args) {
            int[] arr = {1,2,3,4,6,7,8,9,1,1,1,1,1,1,1,1,1};
            isManyNum(arr);
        }

        public static void isManyNum(int[] arr) {
            for (int i = 0; i < arr.length; i++) {
                int count = 0;
                for (int j = 0; j < arr.length && j != i; j++) {
                    if(arr[i]==arr[j]){
                        count++;
                    }
                }
                if(count>(arr.length/2)) {
                    System.out.println(arr[i]);
                }
            }
        }
}

